var express = require('express');
var router = express.Router();
var oracledbUtil = require('../utils/oracledbUtil.js').oracledbUtil;


/* GET home page. */
router.get('/', function(req, res, next) {
  oracledbUtil("SELECT * FROM CAPITAL_ADJUST",
      [],  function (err, result) {
    if (err){
      console.log(err);
      return;
    }

    if (result){
      console.log(result);
    }

  })
  res.render('index', { title: 'Express' });
});

module.exports = router;
